package pratice;

public class Student {
    String studentNum;
    String name;
    double english;
    double math;
    double computer;
    double total_score;
    public Student(String studentNum, String name, double english, double math, double computer) {
        this.studentNum = studentNum;
        this.name = name;
        this.english = english;
        this.math = math;
        this.computer = computer;
        total_score = english + math + computer;
    }
    public String toString() {
        return "studentNum:" + studentNum+",name:" +name+ ",english:" +english+ ",math:" + math+ ",computer:" + computer;
    }
    public double sum () {
        total_score = english + math + computer;
        return total_score;
    }
    public double testScore() {
        return (english + math + computer)/3;

    }
}
